import MySQLdb as mdb
class MYSQL:
    def __init__(self, sql):
        conn = mdb.connect(host="localhost", user="root", passwd="root", db="del_domain")
        cursor = conn.cursor()
        cursor.execute(sql)
        self.alldata = cursor.fetchall()
        cursor.close()
        conn.close()

    def getRs(self):
        return self.data
        
